package com.varian.tool.enums;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * @author ben
 * @since 2024/7/6
 */
public interface BaseEnum<T> {

    Integer getValue();

    @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
    T convert(Integer value);
}
